/** Lachlan Hewson-Doherty (h201384171)
 *  Diploma of Digital and Interactive Games
 *  lachlan_doherty@live.com.au
 *  2013
 */

package cabbage.view.test;

import cabbage.controller.Cupcake;
import cabbage.controller.MuffinTop;



public class Start {

	
	
	
	public static void main(String[] args) {

		//CheckinOps co = new CheckinOps();
//		List<CheckinBean> cbl = co.getAllCheckins();
//		
//		for (int x = 0; x < cbl.size(); x++ ) {
//			CheckinBean cb = cbl.get(x);
//			System.out.println("checkin_id: " + cb.getCheckin_id());
//			System.out.println("urlstring: " + cb.getUrlstring());
//			System.out.println("mytimestamp: " + cb.getMytimestamp());
//		}
//		
//		PlayerOps po = new PlayerOps();
//		List<Account> al = po.getPlayerAccount();
//		
//		for (int i = 0; i < al.size(); i ++) {
//			Account a = al.get(i);
//			System.out.println("account_id: " + a.getAccountid());
//			System.out.println("username: " + a.getUsername());
//			System.out.println("firstName: " + a.getFirstName());
//			System.out.println("lastName: " + a.getLastName());
//			System.out.println("emailAddress: " + a.getEmailAddress());
//			System.out.println("password: " + a.getPassword());
//			System.out.println("player_id: " + a.getPlayer().getPlayerid());
//		}
		
		
//		CheckinBean cb = co.getCheckinByID(229);
//		
//		if(cb != null) {
//		System.out.println(cb.getCheckin_id());
//		System.out.println(cb.getUrlstring());
//		System.out.println(cb.getMytimestamp());
//		} else {
//			System.out.println("null");
//		}
//		
//		
//		CheckpointOps cpo = new CheckpointOps();
//		cpo.getCheckpointsByLevel(0);
//		
//		//RachUtility ru = new RachUtility();
//		RachUtility.checkLengthOfString("sdsd", 10, 20);
		
		
//		AccountCreation ac = new AccountCreation();
//		if(ac.createAccount("rakky4", 
//				"firstname", "lastname", "rakky@email.com", "R4kky4")){
//			System.out.println(ac.getNewPlayerID());
//		}
		
		MuffinTop mt = new MuffinTop();
		mt.createAccount("rakky4", 
				"firstname", "lastname", "rakky@email.com", "R4kky4");
		System.out.println(mt.login("rakky4", "R4kky4"));
		
//		
//		System.out.println(RachUtility.isEmailFormat("Rach.coll@email.com.au"));
//		System.out.println(RachUtility.isEmailFormat("rach.coll@email.com"));
//		System.out.println(RachUtility.isEmailFormat("rach@email.com.au"));
//		System.out.println(RachUtility.isEmailFormat("rach@email.com"));
//		System.out.println(RachUtility.isEmailFormat("rach.coll.ww@email..com.au.aa.dd.ss.aaaaaaaaaaaaaaa"));
	}
	
}


